//------------------------------------------------------------------------------
void initialize()
{

	int i, j;
	for(i = 1; i < 2; i++)
		data[i] = (inst*)malloc(sizeof(inst)*INTERNAL_BUFFER_SIZE);
	
	for(i = 1; i < 2; i++){
		for(j = 0; j < INTERNAL_BUFFER_SIZE; j++){
			data[i][ (j % INTERNAL_BUFFER_SIZE) ].deliver=false;
			data[i][ (j % INTERNAL_BUFFER_SIZE) ].received=false;
			data[i][ (j % INTERNAL_BUFFER_SIZE) ].highestDeliverable=-1;
			data[i][ (j % INTERNAL_BUFFER_SIZE) ].packet.msgs[0].msg_id=0;
		}
	}
	new_data = (inst*)malloc(sizeof(inst));
}
//------------------------------------------------------------------------------
